/*
** list.c for zappy in /home/fassi_c//zappy2/zappouet/server/utils
**
** Made by clement fassi
** Login   <fassi_c@epitech.net>
**
** Started on  Wed Jun 29 12:00:08 2011 clement fassi
** Last update Wed Jun 29 12:00:12 2011 clement fassi
*/

#include <stdlib.h>
#include <string.h>

#include "utils.h"

int             put_in_list(t_list **begin, int new_data)
{
  t_list        *new;

  new = malloc(sizeof(*new));
  new->cs = new_data;
  new->next = *begin;
  *begin = new;
  return (0);
}
